﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace HoangHuy.form
{
    public partial class frmNhapXuatHang : DevExpress.XtraEditors.XtraForm
    {
        public string tenHang = string.Empty;
        public int loaiNhapXuat = 0;
        public int soLuong
        {
            get{ return int.Parse(txtSoLuong.Text);}
            set{ txtSoLuong.Text = value.ToString();}
        }
        public frmNhapXuatHang()
        {
            InitializeComponent();
        }

        public frmNhapXuatHang(int type, string ten)
        {
            loaiNhapXuat = type;
            tenHang = ten;
            InitializeComponent();
        }

        private void frmNhapHang_Load(object sender, EventArgs e)
        {
            if ((int)HoangHuy.Utils.enumConstant.LoaiNhapXuat.Nhap == loaiNhapXuat)
            {
                lblHeader.Text = "Nhập Hàng";
            }
            else
            {
                lblHeader.Text = "Xuất Hàng";
            }
            lblTenHang.Text = tenHang;
        }
    }
}